<?php

declare(strict_types=1);

namespace App\Constants;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;

/**
 * @Constants
 * @method static getMessage(int $SUCCESS_CODE)
 */
class XZXResponseCode extends AbstractConstants
{
    /**
     * @Message("服务器暂时开小差了，请稍后再试！")
     */
    const INTERNAL_CODE = 500;

    /**
     * @Message("Success")
     */
    const SUCCESS_CODE = 0;

    /**
     * @Message("Failed")
     */
    const FAILED_CODE = 1;

    /**
     * @Message("请求成功。")
     */
    const REQUEST_SUCCESS_CODE = 200;

    /**
     * @Message("用户被禁用。")
     */
    const LOGIN_FORBIDDEN = 403;

    /**
     * @Message("路由错误。")
     */
    const ROUTE_NOT_FOUND = 404;

    /**
     * @Message("Token 解密失败，请重新登录！")
     */
    const TOKEN_ERROR_CODE = 1000;

    /**
     * @Message("Token 已过期，请重新登录！")
     */
    const TOKEN_EXPIRE_CODE = 1001;

    /**
     * @Message("没有访问此node的权限！")
     */
    const NO_ACCESS_NODE_CODE = 1002;

    /**
     * @Message("message.no_record")
     */
    const DATA_NOT_FOUND = 1003;

    /**
     * @Message("message.add_fail")
     */
    const ADD_FAIL = 1004;

    /**
     * @Message("message.edit_fail")
     */
    const EDIT_FAIL = 1005;

    /**
     * @Message("message.del_fail")
     */
    const DEL_FAIL = 1006;

    /**
     * @Message("message.no_permission_to_operate")
     */
    const NO_PERMISSION_TO_OPERATE = 1007;

    /**
     * @Message("message.occupied_email")
     */
    const OCCUPIED_EMAIL  = 1008;

    /**
     * @Message("message.mch_reg_status_passed")
     */
    const MCH_REG_STATUS_PASSED  = 1009;

    /**
     * @Message("message.mch_reg_status_reject")
     */
    const MCH_REG_STATUS_REJECT  = 1010;

    /**
     * @Message("message.mch_reg_status_forbidden")
     */
    const MCH_REG_STATUS_FORBIDDEN  = 1011;

    /**
     * @Message("message.mch_reg_is_agree")
     */
    const MCH_REG_IS_AGREE  = 1012;

    /**
     * @Message("message.no_merchant")
     */
    const NO_MERCHANT  = 1013;

    /**
     * @Message("message.mch_trade_website_is_exist")
     */
    const MCH_TRADE_WEBSITE_IS_EXIST  = 1014;

    /**
     * @Message("message.do_not_disable_self_status")
     */
    const DO_NOT_DISABLE_SELF_STATUS  = 1015;

    /**
     * @Message("message.do_not_disable_root")
     */
    const DO_NOT_DISABLE_ROOT  = 1016;

    /**
     * @Message("message.no_user")
     */
    const NO_USER  = 1017;

    /**
     * @Message("message.pwd_do_not_match")
     */
    const PWD_DO_NOT_MATCH  = 1018;

    /**
     * @Message("message.no_role")
     */
    const NO_ROLE  = 1019;

    /**
     * @Message("message.logout_fail")
     */
    const LOGOUT_FAIL  = 1020;

    /**
     * @Message("message.no_settlement")
     */
    const NO_SETTLEMENT  = 1021;

    /**
     * @Message("message.refusing_order")
     */
    const REFUSING_ORDER  = 1022;

    /**
     * @Message("message.refused_order")
     */
    const REFUSED_ORDER  = 1023;


    /**
     * @Message("message.frozening_order")
     */
    const FROZENING_ORDER  = 1024;

    /**
     * @Message("message.frozened_order")
     */
    const FROZENED_ORDER  = 1025;

    /**
     * @Message("message.unfrozening_order")
     */
    const UNFROZENING_ORDER  = 1026;

    /**
     * @Message("message.unfrozened_order")
     */
    const UNFROZENED_ORDER  = 1027;

    /**
     * @Message("message.refunding_order")
     */
    const REFUNDING_ORDER  = 1028;

    /**
     * @Message("message.refunded_order")
     */
    const REFUNDED_ORDER  = 1029;

    /**
     * @Message("message.no_frozened_order")
     */
    const NO_FROZENED_ORDER  = 1030;

    /**
     * @Message("message.no_risk_collection")
     */
    const NO_RISK_COLLECTION  = 1031;

    /**
     * @Message("message.no_channel_collection")
     */
    const NO_CHANNEL_COLLECTION  = 1032;

    /**
     * @Message("message.mch_reg_status_no_pass")
     */
    const MCH_REG_STATUS_NO_PASS  = 1033;

    /**
     * @Message("message.unqualified_order")
     */
    const UNQUALIFIED_ORDER  = 1034;

    /**
     * @Message("message.mch_reg_mch_url")
     */
    const MCH_REG_MCH_URL  = 1035;

    /**
     * @Message("message.thawing_order")
     */
    const THAWING_ORDER  = 1036;

    /**
     * @Message("message.bank_account_info_required")
     */
    const BANK_ACCOUNT_INFO_REQUIRED  = 1037;

    /**
     * @Message("message.mch_email_required")
     */
    const MCH_EMAIL_REQUIRED = 1038;

    /**
     * @Message("message.commission_transferring")
     */
    const COMMISSION_TRANSFERRING = 1039;

    /**
    * @Message("message.insufficient balance")
     */
    const INSUFFICIENT_BALANCE  = 1040;

    /**
     * @Message("message.transing_order")
     */
    const TRANSING_ORDER  = 1041;

    /**
     * @Message("message.export_not_valid")
     */
    const EXPORT_NOT_VALID  = 1042;

    /**
     * @Message("message.not_valid_risk_collection")
     */
    const NOT_VALID_RISK_COLLECTION  = 1043;

    /**
     * @Message("message.not_set_mch_config")
     */
    const NOT_SET_MCH_CONFIG  = 1044;

    /**
     * @Message("message.email_template_exist")
     */
    const EMAIL_TEMPLATE_EXIST  = 1045;

    /**
     * @Message("message.mch_is_forbidden")
     */
    const MCH_IS_FORBIDDEN  = 1046;

    /**
     * @Message("message.sales_mch_binded")
     */
    const SALES_MCH_BINDED  = 1047;

    /**
     * @Message("message.sales_mch_not_binded")
     */
    const SALES_MCH_NOT_BINDED  = 1048;

    /**
     * @Message("message.sales_level_required")
     */
    const SALES_LEVEL_REQUIRED = 1049;

    /**
     * @Message("message.sales_parent_id_required")
     */
    const SALES_PARENT_ID_REQUIRED = 1050;

    /**
     * @Message("message.is_not_sales")
     */
    const IS_NOT_SALES = 1051;

    /**
     * @Message("message.cost_ref_exist")
     */
    const COST_REF_EXIST = 1052;

    /**
     * @Message("message.not_enough_frozen_amount")
     */
    const NOT_ENOUGH_FROZEN_AMOUNT = 1053;

    /**
     * @Message("message.not_set_mch_customized_rate")
     */
    const NOT_SET_MCH_CUSTOMIZED_RATE  = 1054;

}
